const path = require('path')
module.exports = {
    outputDir:'bigScreen',   //打包文件名称
    publicPath: './',
    assetsDir:"static",
    indexPath:"index.html",
    filenameHashing:"true",
    productionSourceMap: false,
    lintOnSave: false,
    devServer: {
        port: 8085, // 端口号
        hot:true,
        disableHostCheck:true,//热更新不生效  可以打开此属性
        // https: false, // https:{type:Boolean}
        open: true, //配置自动启动浏览器
        proxy: {
            '/console': {
                target: process.env.VUE_APP_TARGET,
                changeOrigin: true,
                pathRewrite: {
                    '^/console': '/console'    //代理的路径
                }
            }
        },
    },
    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'less',
            patterns: [
                path.resolve(__dirname, './src/style/*.less')
            ]
        }
    }
};


